import {ComponentOption} from "../../../ComponentOption.ts";
import {ComponentTypeOption} from "../../../ComponentTypeOption.ts";


function getInitOption() {
    const option: ComponentOption = new ComponentOption("flow.rect", null, 0, 0, 100, 50, getTypeOption());
    option.option = {}
    option.addDefaultAnchors();
    // option.addAnchor(0.5, 0.5)
    // option.anchors[0].visiable = false
    for (const a of option.anchors) {
        a.visiable = false
    }
    return option
}

function getTypeOption(): ComponentTypeOption {
    const to = new ComponentTypeOption()
    to.enableResize = true;
    to.enableEditAnchor = false;
    return to;
}

export {getInitOption, getTypeOption}
